package com.gxa.community.admin.service.goods.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gxa.community.admin.mapper.goods.GoodsClassMapper;
import com.gxa.community.admin.mapper.goods.GoodsTagMapper;
import com.gxa.community.admin.service.goods.IGoodsClassService;
import com.gxa.community.core.pojo.domain.goodsdo.GoodsBrand;
import com.gxa.community.core.pojo.domain.goodsdo.GoodsClass;
import com.gxa.community.core.pojo.domain.goodsdo.GoodsTag;
import com.gxa.community.core.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商品分类 服务实现类
 * </p>
 *
 * @author gxa
 * @since 2022-07-18
 */
@Service
public class GoodsClassServiceImpl extends ServiceImpl<GoodsClassMapper, GoodsClass> implements IGoodsClassService {
    /**
     * 根据分类姓名查询
     * @param slt
     * @return
     */
//    @Override
//    public R seekClass(String slt) {
//        if (StringUtils.isBlank(slt)){
//            return R.error("搜索条件不能为空");
//        }
//        QueryWrapper<GoodsClass> wrapper1 = new QueryWrapper<>();
//        wrapper1.eq("name",slt);
//        Page<GoodsClass> page1 = classMapper.selectPage(null, wrapper1);
//        //把分页完成的数据和总共的数量返回
//        return R.ok().put("data",page1.getRecords());
//
//    }

}
